package com.imooc.exception;

import com.imooc.enums.ResultEnum;

/**
 * 自定义异常
* @ClassName: GirlException 
* @Description: TODO 
* @author zyd
* @date 2017年12月12日 上午9:58:50
 */
public class GirlException extends RuntimeException{
	
	private Integer code;

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public GirlException(ResultEnum resultEnum) {
		super(resultEnum.getMsg());
		this.code = resultEnum.getCode();
	}
	
	
}
